package com.niiwoo.civet.trade.dto.response;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author wangjun
 * 代扣结果
 */
@Getter
@Setter
@ToString
public class WithholdResultDTO implements Serializable
{
    @NotEmpty
    private String code;//
    private String message;
    @NotNull
    private Long orderId;

    public boolean isSuccess()
    {
        return "0000".equals(code);
    }
}
